//package com.controller;
//
//import org.jsoup.Jsoup;
//import org.jsoup.nodes.Document;
//import org.jsoup.nodes.Element;
//import org.jsoup.select.Elements;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.*;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.client.RestTemplate;
//
//import javax.annotation.Resource;
//import java.util.Arrays;
//
//
//@RestController
//public class OneController {
//    @Autowired
//    private RestTemplate restTemplate;
//    @GetMapping("/one")
//    public String one() throws Exception{
//        HttpHeaders headers = new HttpHeaders();
////        headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
//        headers.add("user-agent", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.193 Safari/537.36");
////        headers.add("cookie","__cfduid=d5ba55cb0e66b6cbe6c647daa91ea8b991609946394; theme=auto; locale=zh; _ga=GA1.2.1400952819.1609946405; over18=1; _gid=GA1.2.1802465157.1610047696; __cf_bm=7f6158cb39ff1a88ee50a990e29fdd77cabdd38f-1610047695-1800-Ab3bE4wRVPboGB06axgfX7Pfb0UFg1jpuZqEjW2TIxGooXscsknxO1Bt6Mm6d1WS1zw+Dv7x4Rwfh6mysRzZTCFNDMoGLmsCIL3uNf9u//jW4CADTumOp3B1mXGxCZa9DQ==; _jdb_session=nYQmN0aTPtSPJTmN%2F8TuaL0sordzJ65IsAWwr%2FFrYv9Cm16wf5cW7HeCPkrH1RFR8OFWUa3IG5OXqMI3ulsevTGTIGY%2BkZnw1gzkChB3Vy2GC4da2t0bErl%2FtPzdS%2FofXv6iy6pR1QhtBUtcrdU7bt9NJq%2FIDYEFApOlQ1IfN1lH5mBnDKl%2FX3LKP7PiViYHIVz0eCEze3Y806hMWlP6EDRSEIHRpkpxnVqz2VQQOWLEPHekvvkE97CsFJ2tjoVdYMApz%2FkS2NR1JY5y%2BdZ0%2FxBGlhm2WA%2BdsgLUpqHm4V19HJty%2BDGIQPP5--6PELXDg9yZvI6It5--h1o9EwqR6q%2FvmkI9DFzTBw%3D%3D");
//        headers.add("accept","text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9");
//        HttpEntity<String> entity = new HttpEntity<String>("parameters", headers);
//
//        ResponseEntity<String> exchange = restTemplate.exchange("https://javdb.com", HttpMethod.GET, entity, String.class);
//
////        System.out.println(exchange.getBody());
////        String body = restTemplate.getForEntity("https://javdb.com/actors", String.class).getBody();
//
////        Document document = Jsoup.connect("https://javdb.com/").get();
//        Document document  = Jsoup.parse(exchange.getBody());
//        Elements title = document.getElementsByTag("title");
//        for (Element element : title) {
//            System.out.println(title.text());
//        }
//        return "body";
//    }
//
//
//}
